#include "rep.hpp"
#include "gc.h"

namespace rep{


  size_t IntegerHelper::memSize(Slot* in){return sizeof(int);}
  
  Type* IntegerHelper::type(Slot* in){
    //unimplemented
    return NULL;
  }

  string* IntegerHelper::toString(Slot* in){
    //unimplemented
    return NULL;
  }

  int IntegerHelper::hashCode(Slot* in){
    static hash<int> h; 
    return h(in->i);
  }

  void IntegerHelper::assign(Slot* to, int rvalue){
    to->tag = Slot::INT;
    to->i = rvalue;
  }

};
